import math
class Solution(object):
    def isGoodArray(self, nums):
        g = 0
        for num in nums:
            g = math.gcd(g, num)
        return g == 1